package org.beetl.sql.springboot;

import org.beetl.sql.annotation.builder.AttributeConvert;
import org.beetl.sql.clazz.kit.BeanKit;
import org.beetl.sql.core.ExecuteContext;

/**
 * 实现Tenant注解
 */
public class TenantAttributeConvert  implements AttributeConvert {
    public Object toDb(ExecuteContext ctx, Class cls, String name, Object pojo) {
        BeanKit.setBeanProperty(pojo, Db.localValue.get(),name);
        return Db.localValue;
    }
}
